package com.qfedu.fmmall.dao;

import com.qfedu.fmmall.entity.ShoppingCart;
import com.qfedu.fmmall.general.GeneralDAO;
import com.qfedu.fmmall.vo.ShoppingCartVO;
import jdk.nashorn.internal.runtime.linker.LinkerCallSite;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCartMapper extends GeneralDAO<ShoppingCart> {
    List<ShoppingCartVO> selectShoppingCartByUserId(Integer userId);

   int updateByCartNum(@Param("cartId")Integer cartId, @Param("cartNum") String cartNum);

    List<ShoppingCartVO> selectShoppingCartByCarts(@Param("cids")List<Integer> cids);

    List<ShoppingCartVO> selectShoppingCartByCids(@Param("cids")List<Integer> cids);
}